﻿namespace CohesionAndCoupling
{
    using System;

    internal static class ThreeDimensionalOperations
    {
        internal static double CalculateDistance(double x1, double y1, double z1, double x2, double y2, double z2)
        {
            double distance =
                Math.Sqrt(
                ((x2 - x1) * (x2 - x1)) +
                ((y2 - y1) * (y2 - y1)) +
                ((z2 - z1) * (z2 - z1)));
            
            return distance;
        }

        internal static double CalculateVolume(double x, double y, double z)
        {
            double volume = x * y * z;

            return volume;
        }

        internal static double CalculateDistanceToOrigin(double x, double y, double z)
        {
            double distance = CalculateDistance(0, 0, 0, x, y, z);

            return distance;
        }
    }
}